package com.aiit.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_merchant")
public class Merchant {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "商家姓名")
    private String name;
    @ApiModelProperty(value = "商家地址")
    private String address;
    @ApiModelProperty(value = "交易成功次数")
    private Integer successNumber;
    @ApiModelProperty(value = "退单次数")
    private Integer timeoutNumber;
    @ApiModelProperty(value = "交易总数量")
    private Integer totalNumber;
    @ApiModelProperty(value = "交易总金额")
    private Double totalAmount;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "最近交易时间")
    private String newtime;
    //逻辑删除
    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "deleted")
    @TableLogic
    private Integer deleted;
}
